﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Posts.ascx.cs" Inherits="Skecthial.UI.Controls.Posts" %>
<asp:Repeater ID="rptPosts" runat="server" OnItemDataBound="rptPosts_ItemDataBound">
    <HeaderTemplate>
    </HeaderTemplate>
    <ItemTemplate>
        <div id="postContetWrapper" class="pbox" style="display: block; width: 98%;">
            <%--<div id="posterImage" style="width: 100px; height: 120px; float: left;">
                <img alt="Poster Profile" id="UserImage" runat="server" width="80" height="100" src='<%# Eval("userImage") %>' />
            </div>--%>
            <div id="postContent" style="width: 100%;">
                <div style="width: 98%; margin-right: auto; margin-left: auto; margin: 0 auto;">
                    <table style="width: 100%; text-align: center;" align="center">
                        <tr>
                            <td style="width: 150px;">
                                <span align="center">
                                    <h3 style="font: bold 12px monospace; color: #CCC;">
                                        WHO</h3>
                                </span>
                            </td>
                            <td style="width: 150px;">
                                <span align="center">
                                    <h3 style="font: bold 12px monospace; color: #CCC;">
                                        WHEN</h3>
                                </span>
                            </td>
                            <td style="width: 150px;">
                                <span align="center">
                                    <h3 style="font: bold 12px monospace; color: #CCC;">
                                        WHAT</h3>
                                </span>
                            </td>
                            <td style="width: 150px;">
                                <span align="center">
                                    <h3 style="font: bold 12px monospace; color: #CCC;">
                                        WHERE</h3>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%# Eval("User") %>
                            </td>
                            <td>
                                <%# Eval("when") %>
                            </td>
                            <td>
                                <%# Eval("what") %>
                            </td>
                            <td>
                                <%# Eval("where") %>
                            </td>
                        </tr>
                    </table>
                </div>
                <hr />
                <%--<%# Eval("PostContent") %>--%>
                <span align="center">
                    <h3 style="font: bold 12px monospace; color: #CCC;">
                        WITH</h3>
                </span>
                <div align="center" style="width: 98%; display: block; margin-left: auto; margin-right: auto;
                    margin: 0 auto;">
                    <ul class="navlist">
                        <asp:Repeater ID="rptWith" runat="server">
                            <HeaderTemplate>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li><a class="personPopupTrigger" href="#" onclick="javascript:return false;" rel="<%# Eval("id") %>"
                                    type="<%# Eval("type") %>" name="<%# Eval("fullname") %>">
                                    <img src="../Objects/<%# Eval("type") %>/<%# Eval("fullname") %>" width="40" height="40" /></a></li>
                            </ItemTemplate>
                            <FooterTemplate>
                            </FooterTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div style="width: 98%; margin-right: auto; margin-left: auto; margin: 0 auto;">
                </div>
            </div>
            <%-- <div style="margin-top: 25px; width: 100%; text-align: right;">
                posted by <i>
                    <asp:Label ID="UserName" runat="server" Text='<%# Eval("User") %>'></asp:Label>
                </i>
            </div>--%>
        </div>
    </ItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</asp:Repeater>
